<?php include_partial('global/navbar') ?>
<script language="javaScript">
    $(function(){
            now = new Date(),hour = now.getHours()
            if(hour < 6){ title = "凌晨好！"}
            else if (hour < 9){ title = "早上好！"}
            else if (hour < 12){ title = "上午好！"}
            else if (hour < 14){ title = "中午好！"}
            else if (hour < 17){ title = "下午好！"}
            else if (hour < 19){ title = "傍晚好！"}
            else if (hour < 22){ title = "晚上好！"}
            else { title ="夜里好！"}
            
            $("#times_wen").text(title);
           
    })

</script>
<br><br>
<div class="acc-hello acc-noon">
    <div class="wrap">
        <div class="ft-l">
            <div class="tit"><span id="times_wen"></span> <?php echo $sf_user->getAttribute('user_name',''); ?> ，喝杯好茶，让精神抖擞起来。</div>
            <hr />
            <!--<div><i class="icon20_g icon_gg"></i>号外：土豪特别奖，充值投标，<a href="/recharge?haowai">立赢1克拉裸钻</a></div>-->
        </div>
        
        
    </div>
</div>
<textarea id="accdata" class="hidden">{&quot;SecurityResponse&quot;:{&quot;IdValidate&quot;:0,&quot;PhoneValidate&quot;:1,&quot;EmailValidate&quot;:0,&quot;PwdValidate&quot;:1},&quot;WaitReturnedResponse&quot;:{&quot;Dun&quot;:0,&quot;ThisMonth&quot;:0,&quot;ThisMonthAmount&quot;:0,&quot;NextMonth&quot;:0,&quot;NextMonthAmount&quot;:0,&quot;ThisYear&quot;:0,&quot;ThisYearAmount&quot;:0,&quot;ZNum&quot;:0,&quot;ZAmount&quot;:0},&quot;BidSituationResponse&quot;:{&quot;Dun&quot;:0,&quot;Nums&quot;:0,&quot;ReturnedNum&quot;:0,&quot;BidNum&quot;:0,&quot;BidAmount&quot;:0,&quot;ReturnedAmount&quot;:0,&quot;Repay90Count&quot;:0,&quot;ReturnedCount&quot;:0,&quot;PaymentCount&quot;:0,&quot;RepayAmount&quot;:0,&quot;PaymentAmount&quot;:0,&quot;ReceivablePrincipal&quot;:0,&quot;ReceivableInterest&quot;:0,&quot;ZNum&quot;:0,&quot;ZAmount&quot;:0},&quot;BorrowResponse&quot;:{&quot;BorrowAmount&quot;:0,&quot;RefundAmount&quot;:0,&quot;AwaitAmount&quot;:0},&quot;FinancialResponse&quot;:{&quot;InvestAmount&quot;:0.0000,&quot;ReceivablePrincipal&quot;:0,&quot;Earning&quot;:0,&quot;AmountInterestsToReceive&quot;:0},&quot;ResponseStatus&quot;:{},&quot;AuthenticationInfo&quot;:{&quot;CreditLine&quot;:0.0000,&quot;NowadayLimit&quot;:0.0000,&quot;Frozen&quot;:0.0000},&quot;Lt&quot;:{&quot;LastTime&quot;:&quot;\/Date(1411367634771+0800)\/&quot;},&quot;UserName&quot;:&quot;a1111111&quot;,&quot;LastLoginDate&quot;:&quot;\/Date(1411365707967-0000)\/&quot;,&quot;IsFirstLogin&quot;:false,&quot;IsIdValidate&quot;:false,&quot;IsEmailValidate&quot;:false,&quot;IsMobileValidate&quot;:false,&quot;ActivityType&quot;:0,&quot;Balance&quot;:0.0000,&quot;Available&quot;:0.0000,&quot;Frozen&quot;:0.0000,&quot;Assets&quot;:0.0000,&quot;SecurityStatusId&quot;:50,&quot;WarmReminder&quot;:&quot;下午好  ，喝杯好茶，让精神抖擞起来。&quot;,&quot;IdValidate&quot;:0,&quot;PhoneValidate&quot;:1,&quot;EmailValidate&quot;:0,&quot;PwdValidate&quot;:1}</textarea>
<div class="acc_nav">
    <div class="wrap">
        <div class="acc_tit">
            <div class="dressing">
                <div class="username"><?php echo $sf_user->getAttribute('user_name',''); ?>
                </div>

                <div class="issue">
                    <div class="progress ft-l">
                        <?php if($user_auth->getIdCard()=="0" && $user_auth->getEmail()=="0"):?>
                        <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 30% ;background: #ff9600">
                            <span class="sr-only"></span>
                        </div>
                        <?php endif; ?>
                        
                        <?php if($user_auth->getIdCard()!="0" && $user_auth->getEmail()=="0"):?>
                        <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 70% ;background: #ff9600">
                            <span class="sr-only"></span>
                        </div>
                        <?php endif; ?>
                        
                        <?php if($user_auth->getIdCard()=="0" && $user_auth->getEmail()!="0"):?>
                        <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 70% ;background: #ff9600">
                            <span class="sr-only"></span>
                        </div>
                        <?php endif; ?>
                        
                         <?php if($user_auth->getIdCard()!="0" && $user_auth->getEmail()!="0"):?>
                        <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 100% ;background: #ff9600">
                            <span class="sr-only"></span>
                        </div>
                        <?php endif; ?>
                    </div>
                </div>
                <div class="issue alt">
                   <?php if($user_auth->getIdCard()=="0" && $user_auth->getEmail()=="0"):?>
                    <div class="ft-l"  >安全等级：幼小 <a href='<?php echo url_for("user/security"); ?>'>[变强]</a></div>
                   <?php endif; ?>
                    <?php if($user_auth->getIdCard()!="0" && $user_auth->getEmail()=="0"):?>
                    <div class="ft-l" >安全等级：强壮 <a href='<?php echo url_for("user/security"); ?>'>[变强]</a></div>
                   <?php endif; ?>
                     <?php if($user_auth->getIdCard()=="0" && $user_auth->getEmail()!="0"):?>
                    <div class="ft-l"  >安全等级：强壮 <a href='<?php echo url_for("user/security"); ?>'>[变强]</a></div>
                   <?php endif; ?>
                    
                   <?php if($user_auth->getIdCard()!="0" && $user_auth->getEmail()!="0"):?>
                    <div class="ft-l"  >安全等级：完美 </div>
                   <?php endif; ?>
                </div>
                <div class="usericon">
                        <i class="authicon userauth <?php if($user_auth->getIdCard()=="1"):?> on <?php endif;?>"  title="实名认证"><a href="<?php echo url_for('user/security'); ?>"></a></i>

                        <i class="authicon phoneauth on" title="绑定手机"><a href="<?php echo url_for('user/security'); ?>"></a></i>
                        <i class="authicon msgauth <?php if($user_auth->getEmail()=="1"):?> on <?php endif;?>" title="绑定邮箱"><a href="<?php echo url_for('user/security'); ?>"></a></i>
                    

                </div>
            </div>
            <div class="dressing_list">
                <dl>
                    <?php 
                        $all_remaining = $user_account->getBalance();
                    ?>
                    <dt><span class="tit">账户余额</span><span class="alt"><?php echo sfConfig::get('app_symbol').number_format($all_remaining,2);?></span></dt>
                    <dd>
                        <span class="tit first">可用余额</span><span class="alt"><?php echo sfConfig::get('app_symbol').number_format($user_account->getRemainingMoney(),2);?></span>
                        <span class="tit">投标中的金额</span><span class="alt">
                            <?php echo sfConfig::get('app_symbol').number_format($user_result['loaning']->getLoanMoney(),2);?>
                        </span>
                    <?php 
                        $all_temp = bcadd($all_remaining,$user_account->getInvestment(),sfConfig::get('app_value_bit'));
                        $all = bcadd($all_temp,$user_account->getInterest(),sfConfig::get('app_value_bit'));
                    ?>    
                        <span class="tit">资产总额</span><span class="alt"><?php echo sfConfig::get('app_symbol').number_format($all,2);?></span>
                    </dd>
                </dl>
                <div class="dressing-r">
                    <a href="<?php echo url_for('account/recharge')?>" class="btn btn-primary" id="hrefrech">充值</a>
                    <a href="<?php echo url_for('account/withdrawcash')?>" class="btn btn-default sm">提现</a>
                </div>
            </div>

        </div>
        <dl class="open">
            <dd id="con"><a mod="1" href="javascript:void(0)"><i class="icon20_g icon_barchart"></i>理财统计</a><a mod="2" href="javascript:void(0)"><i class="icon20_g icon_user"></i>我的借款</a><a mod="3" href="javascript:void(0)"><i class="icon20_g icon_cakechart"></i>投标概况</a><a mod="4" href="javascript:void(0)"><i class="icon20_g icon_bookt"></i>认证信息</a><a mod="5" href="javascript:void(0)"><i class="icon20_g icon_dhk"></i>待回款</a><a mod="6" href="javascript:void(0)"><i class="icon20_g icon_lock"></i>安全信息</a></dd>
            <dt id="add" class="acc_add"></dt>
        </dl>
        <div class="mod_nav">
            <ul id="modnav" class="dragfunction">
            </ul>
        </div>

    </div>
</div>

<?php include_partial('account',array("user_account"=>$user_account,'user_result'=>$user_result)) ?>
<script src="./js/dragsort.js"></script>
<script src="./js/account.js"></script>


<script>
    var iffirst = 'False';
    new accountfirst(iffirst);
    $("#10003,#10005").addClass("on");
</script>